home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FishMarket 1.0
/
FishMarket v1.0.iso
/
fishies
/
051-075
/
disk_069
/
console
/
readme.cons
< prev
Wrap
Text File
|
1992-05-06
|
2KB
|
40 lines
Well, here it is. For those of you who attended the February ASDF meeting,
I want to tell you that I have fixed the problems I was having. My 'gets'
function now knows how long the screen line is, and knows where the cursor is on
the line. Look at the source file 'console.c' to find out how.
Unfortunately, if you enable the screen sizing, and change the size in the
middle of the input, 'gets' can't tell what happened. Quite a bit more code.
To use the functions in console in your own programs, just use the #define
lines from the beginning of 'constest.c', and include console.o in your link.
This arc includes the files:
console.c source to the new console routines
console.o above compiled with -b & -r options
constest.c source to test driver for console.c
constest.o above compiled with -b & -r options
constest executable demo program using most
of the features of console
makefile for the Software Distillery's make
readme.cons (You're kidding, right?)
For those of you who haven't attended an ASDF meeting lately (or ever),
console is a try at a new set of routines to get around some of the problems with
the standard system routines. (At least that's how I see it.) For instance, the
new 'getchar' really does let you get just one character from the keyboard. The
new 'gets' understands tabs and backspaces and control-x to keep the cursor
straight.
There are also some graphics routines to handle some of the simpler functions
that you may need for charts or graphs or just jazzing up your screens without
going through the pain of setting up everything from scratch.
Have fun!
Jim Cooper
P.O. Box 35673
Fayetteville, NC 28303